home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / AEhyperViewTemplate.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  2.8 KB  |  97 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //    Alias|Wavefront Script File
  19. //
  20. //    Creation Date:    June 16, 1997
  21. //    Author:            sw
  22. //
  23. //    Procedure Name:
  24. //    AEhyperViewTemplate
  25. //
  26. //    Description Name;
  27. //    Creates the attribute editor controls for the hyperView node
  28. //
  29. //    Input Value:
  30. //    nodeName
  31. //
  32. //    Output Value:
  33. //    None
  34. //
  35.  
  36.  
  37. global proc AEhyperViewDescriptionReplace ( string $description )
  38. {
  39.  
  40.     string $conDescription = `getAttr $description`;
  41.     textField -e  -tx $conDescription 
  42.         -cc ("setAttr " + $description + 
  43.             " -type \"string\" " +
  44.             " `textField -q -tx descriptionConnected`;" )
  45.         descriptionConnected;
  46. }
  47.  
  48.  
  49. global proc AEhyperViewDescriptionNew ( string $description )
  50. {
  51.     setUITemplate -pst attributeEditorTemplate;
  52.  
  53.     string $conDescription = `getAttr $description`;
  54.     rowLayout -nc 3;
  55.         text -l "Description" descriptionName;
  56.         textField  -tx $conDescription 
  57.             -cc ("setAttr " + $description + 
  58.                 " -type \"string\" " +
  59.                 " `textField -q -tx descriptionConnected`;" )
  60.             descriptionConnected;
  61.         text " ";
  62.         setParent ..;
  63.  
  64.     setUITemplate -ppt;
  65. }
  66.  
  67.  
  68. global proc AEhyperViewTemplate ( string $nodeName )
  69. {
  70.     editorTemplate -beginScrollLayout;
  71.     
  72.         editorTemplate -beginLayout "Hyper View Attributes" -collapse 0;
  73.             editorTemplate -callCustom "AEhyperViewDescriptionNew"
  74.                     "AEhyperViewDescriptionReplace"
  75.                     "description";
  76.             editorTemplate -addControl "position";
  77.             editorTemplate -addControl "dagView";
  78.             editorTemplate -addControl "focusNode";
  79.             editorTemplate -addControl "buildDirection";
  80.             editorTemplate -addControl "rootNode";
  81.         editorTemplate -endLayout;        
  82.  
  83.         // suppressed attributes
  84.  
  85.         editorTemplate -suppress "description";
  86.         editorTemplate -suppress "fullName";
  87.         editorTemplate -suppress "shortName";
  88.         editorTemplate -suppress "viewRectLow";
  89.         editorTemplate -suppress "viewRectHigh";
  90.  
  91.         // include/call base class/node attributes
  92.         AEdependNodeTemplate $nodeName;
  93.  
  94.     editorTemplate -addExtraControls;
  95.     editorTemplate -endScrollLayout;
  96. }
  97.